export class scanQRCodesInitData {
  public readonly qrCodeType: string
  public readonly vehicleNo: string
  public readonly vst: number
  public readonly qcNo: number
  public readonly mileageCost: number
  public readonly transactionMark: string
  public readonly boardingTime: string
  public readonly mileage: string
  public readonly paymentMethod: number
  constructor(data: { qrCodeType: string; A: string; B: number; H: number; D: number; E: string; F: string; G: string; paymentMethod: number }) {
    this.qrCodeType = data.qrCodeType
    this.vehicleNo = data.A
    this.vst = data.B
    this.qcNo = data.H
    this.mileageCost = data.D
    this.transactionMark = data.E
    this.boardingTime = data.F
    this.mileage = data.G
    this.paymentMethod = data.paymentMethod
  }
}

// 服务器返回实体
export class serviceData {
  constructor(
    public readonly code: string, // 业务状态码
    public readonly message: string, // 业务描述
    public readonly data: any, // 业务数据
    public readonly statusCode?: number, // http 状态码
    public readonly errMsg?: string // uni request 错误描述
    ) {
  }
}

// 支付支付实体
export class taxiAlipayPayment {
  constructor(
    public readonly code: string,
    public readonly currency: string,
    public readonly jsapiPayInfo: string,
    public readonly msg: string,
    public readonly outTradeNo: string,
    public readonly totalAmount: string,
    public readonly tradeNo: string,
  ) { }
}
